package com.yasenagat;

import org.apache.thrift.protocol.TCompactProtocol;
import org.apache.thrift.protocol.TProtocol;
import org.apache.thrift.transport.TFramedTransport;
import org.apache.thrift.transport.TSocket;
import org.apache.thrift.transport.TTransport;

public class Client {
	
	
	public static void main(String[] args) {
		
		try {
			TTransport transport;
			Something.Client client;
			transport = new TFramedTransport(new TSocket("127.0.0.1",
					8888));
			TProtocol protocol = new TCompactProtocol(transport);
			client = new Something.Client(protocol);
			transport.open();
			
			client.ping();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
